Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(v2): replace Clipboard with copy-text-to-clipboard #2900

Merged
merged 3 commits into from
Jun 7, 2020

Conversation

lex111
Copy link
Contributor

@lex111 lex111 commented Jun 6, 2020

Motivation

Actually there is no need to use the Clipboard package, we can do with a more lightweight alternative (https://www.npmjs.com/package/copy-text-to-clipboard)

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Preview.

All chunks size (parsed) for website v2.

Before After
4.22 MB 4.11 MB

Related PRs

(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

@lex111 lex111 added the pr: performance This PR does not add a new behavior, but existing behaviors will be more memory- / time-efficient. label Jun 6, 2020
@lex111 lex111 requested a review from yangshun as a code owner June 6, 2020 12:05
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jun 6, 2020
@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented Jun 6, 2020

Deploy preview for docusaurus-2 ready!

Built with commit ce62148

https://deploy-preview-2900--docusaurus-2.netlify.app

@@ -5494,6 +5494,11 @@ copy-descriptor@^0.1.0:
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the clipboard package be removed from yarn.lock?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️

@lex111 lex111 force-pushed the lex111/replace-clipboard-codeblock branch from dd23461 to ce62148 Compare June 7, 2020 05:48
@yangshun yangshun merged commit dd1ef71 into master Jun 7, 2020
@lex111 lex111 deleted the lex111/replace-clipboard-codeblock branch June 7, 2020 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: performance This PR does not add a new behavior, but existing behaviors will be more memory- / time-efficient.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants